package com.lh.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.api.vo.PayConfigVo;
import com.lh.api.vo.VerifyVo;
import com.lh.common.entity.admin.Order;
import com.paypal.base.rest.PayPalRESTException;

import javax.servlet.http.HttpServletRequest;

/**
 * @author gze
 * @ClassName:
 * @Description: (类作用)
 * @date: 2020-05-18 14:56
 */
public interface PayService extends IService<Order> {

    /**
    　* @description: 支付校验并获取支付配置
    　* @author GaoZien
    　* @date 2020/5/27 0027
    */
    PayConfigVo getPayConfig(String orderItem, Long userId, HttpServletRequest request);

    VerifyVo success(String paymentId, String orderItem, Long userId) throws PayPalRESTException;

    void cancel(String orderItem, Long userId);

    void orderPayCallback(String requestString);
}
